package com.study.score.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;

@Document(collection = "low_score_records")
public class LowScoreRecord {

    @Id
    private String id;

    private String studentName;

    private String courseName;

    private BigDecimal score;

    // 构造方法（可选）
    public LowScoreRecord() {}

    public LowScoreRecord(String studentName, String courseName, BigDecimal score) {
        this.studentName = studentName;
        this.courseName = courseName;
        this.score = score;
    }

    // Getter 和 Setter 方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }
}
